package com.java.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.java.pojo.OrderStatus;
import com.java.pojo.Orders;
import com.java.pojo.vo.MyOrdersVO;
import com.java.pojo.vo.OrderStatusCountsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单表;
 *
 * @author jl
 * @since 2020-10-13 11:31:41
 */
@Mapper
public interface OrdersDao extends BaseMapper<Orders> {

    List<MyOrdersVO> queryMyOrders(IPage<MyOrdersVO> page, @Param("paramsMap") Map<String, Object> paramsMap);

    int getMyOrderStatusCounts(@Param("paramsMap") Map<String, Object> map);

    OrderStatusCountsVO getMyOrderStatusCounts1(String userId);

    List<OrderStatus> getMyOrderTrend(IPage<OrderStatus> page, String userId);

}
